import {View, Input, Text} from '@tarojs/components';
import {Cell} from "@antmjs/vantui";

function NicknameInput(pros) {
  const handleNicknameInput = (e) => {
    pros.nickeName.current = e.detail.value
  };

  return (
    <View>
      <Cell renderIcon={<Text>设置昵称：</Text>}
            renderTitle={<Input type='nickname' onInput={handleNicknameInput} placeholder='请输入昵称' />} />
    </View>
  );
}

export default NicknameInput;
